import request from '@/utils/request'

// 获取岗位列表
export function postList(data) {
    return request({
        url: '/system/sys-post/postList',
        method: 'post',
        data
    })
}

// 新增
export function addPost(data) {
    return request({
        url: '/system/sys-post/addPost',
        method: 'post',
        data
    })
}

// 修改
export function updatePost(data) {
    return request({
        url: '/system/sys-post/',
        method: 'put',
        data
    })
}

export function getPost(postId) {
    return request({
        url: '/system/sys-post/' + postId,
        method: 'get'
    })
}

export function delPost(postId) {
    return request({
        url: '/system/sys-post/' + postId,
        method: 'delete'
    })
}

export function optionSelect() {
    return request({
        url: '/system/sys-post/optionSelect',
        method: 'get'
    })
}
